package com.yixin.hospital.entity.dto.req.drugType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("新增药品类别请求体")
@Data
public class DrugTypeAddReqDTO {

    @ApiModelProperty("药品类别父id(没有则传0)")
    @NotNull(message = "药品类别父id不能为空")
    private Long parentId;

    @ApiModelProperty("药品类别编码")
    @NotBlank(message = "药品类别编码不能为空")
    private String abb;

    @ApiModelProperty("药品类别名称")
    @NotBlank(message = "药品类别名称不能为空")
    private String name;

    @ApiModelProperty("药品类别等级")
    @NotNull(message = "药品类别等级不能为空")
    private Integer level;

    @ApiModelProperty("药品类别排序")
    @NotNull(message = "药品类别排序不能为空")
    private Integer sort;

    @ApiModelProperty("药品类别说明")
    private String description;
}
